<?php 
// +----------------------------------------------------------------------
// | Quotes [ 只为给用户更好的体验]**[我知道发出来有人会盗用,但请您留版权]
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: 零度  <2109877665@qq.com>          盗用不留版权,你就不配拿去!
// +----------------------------------------------------------------------
// | Date: 2019年08月20日
// +----------------------------------------------------------------------
/*
	require './Core/Common.php'; 
	$INTL_LOGIN_QRCODE = new INTL_LOGIN_QRCODE();
	$money = $INTL_LOGIN_QRCODE->Get_AliLogin_Qr();
	
	echo '<center>'.$money['id'].'<br><img align="center" id="qrcodeimg" alt="加载中..." src="'.$money['qrdata'].'" title="扫码登录" width="200" height="200" style=" position: relative; border: green solid 1px;"><div class="list-group-item" id="mobile" style="display:none;"><button type="button" id="mlogin" onclick="mloginurl()" class="btn btn-warning btn-block">跳转QQ快捷登录</button></center>';//
	*/
$a = "A个國12２aａAＡ∨[( )]-.．。";
preg_match_all("/[a-zA-Z0-9\x{4e00}-\x{9fa5}]/u", iconv('gbk', 'utf-8', $a), $x);
$b = iconv('utf-8', 'gbk', join("", $x[0]));
echo '成功：'.match_chinese($a);


function match_chinese($chars,$encoding='utf8')
{
$pattern =($encoding=='utf8')?'/[\x{4e00}-\x{9fa5}a-zA-Z0-9]/u':'/[\x80-\xFF]/';
preg_match_all($pattern,$chars,$result);
$temp =join('',$result[0]);
return $temp;
}
?>